package com.woniu.exception.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellowDocter
 * @since 2022-08-12
 */
@TableName("t_exception")
@ApiModel(value = "TException对象", description = "")
public class TException implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("异常信息表的主键")
    @TableId(value = "exception_id", type = IdType.AUTO)
    private Integer exceptionId;

    @ApiModelProperty("当前节点，即异常发生的地点")
    private String location;

    @ApiModelProperty("写事故类别，自己写的，没有类型表来连接")
    private String exceptionType;

    @ApiModelProperty("反馈者")
    private String feedbacker;

    @ApiModelProperty("发现时间")
    private Date findTime;

    @ApiModelProperty("反馈方式")
    private String feedbackway;

    @ApiModelProperty("提交反馈的时间")
    private Date feedbackTime;

    @ApiModelProperty("异常说明")
    private String introduction;

    @ApiModelProperty("t_track在途跟踪表的ID")
    private Integer trackId;

    @TableField(exist = false)
    private TTrack tTrack;

    public Integer getExceptionId() {
        return exceptionId;
    }

    public void setExceptionId(Integer exceptionId) {
        this.exceptionId = exceptionId;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getExceptionType() {
        return exceptionType;
    }

    public void setExceptionType(String exceptionType) {
        this.exceptionType = exceptionType;
    }

    public String getFeedbacker() {
        return feedbacker;
    }

    public void setFeedbacker(String feedbacker) {
        this.feedbacker = feedbacker;
    }

    public Date getFindTime() {
        return findTime;
    }

    public void setFindTime(Date findTime) {
        this.findTime = findTime;
    }

    public String getFeedbackway() {
        return feedbackway;
    }

    public void setFeedbackway(String feedbackway) {
        this.feedbackway = feedbackway;
    }

    public Date getFeedbackTime() {
        return feedbackTime;
    }

    public void setFeedbackTime(Date feedbackTime) {
        this.feedbackTime = feedbackTime;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getTrackId() {
        return trackId;
    }

    public void setTrackId(Integer trackId) {
        this.trackId = trackId;
    }

    public TTrack gettTrack() {
        return tTrack;
    }

    public void settTrack(TTrack tTrack) {
        this.tTrack = tTrack;
    }

    @Override
    public String toString() {
        return "TException{" +
                "exceptionId=" + exceptionId +
                ", location='" + location + '\'' +
                ", exceptionType='" + exceptionType + '\'' +
                ", feedbacker='" + feedbacker + '\'' +
                ", findTime=" + findTime +
                ", feedbackway='" + feedbackway + '\'' +
                ", feedbackTime=" + feedbackTime +
                ", introduction='" + introduction + '\'' +
                ", trackId=" + trackId +
                ", tTrack=" + tTrack +
                '}';
    }
}
